package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-09-05 9:45
 */
public class Test01 {
    public static void main(String[] args) {
        Cat cat1 = new Cat("cat1", 1, 100);
        Dog dog1 = new Dog("dog1", 2, 99);
//        //Object类中的toString()的默认实现：全限定名@内存地址相关的只
//        System.out.println(cat1);
//        System.out.println(cat1.toString());
//        cat1.eat();
//        dog1.eat();
//        Animal animal = new Animal();

        new Feeder().play(cat1);
        new Feeder().play(dog1);

    }
}
